﻿using Microsoft.AspNetCore.Mvc;

namespace GroupTwo_MVC.Controllers
{
    /// <summary>
    /// 所有工单的控制器
    /// </summary>
    /// <returns></returns>
    public class WorkOrderController : Controller
    {
        private readonly IConfiguration _configuration;

        public WorkOrderController(IConfiguration configuration)
        {
            _configuration = configuration;
        }
        #region 生产工单
        /// <summary>
        /// 生产工单的添加
        /// </summary>
        /// <returns></returns>
        public IActionResult SCWorkOrderAdd()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 生产工单的查询（主页面）
        /// </summary>
        /// <returns></returns>
        public IActionResult SCWorkOrderQuery()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }

        /// <summary>
        /// 生产工单的工单信息页面
        /// </summary>
        /// <returns></returns>
        public IActionResult SCWorkOrderJiBenQuery()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }


        





        #endregion

        #region BOM工单

        /// <summary>
        /// 添加Bom
        /// </summary>
        /// <returns></returns>
        public IActionResult AddBOM()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// Bom列表
        /// </summary>
        /// <returns></returns>
        public IActionResult GetBOM()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// Bom详情
        /// </summary>
        /// <returns></returns>
        public IActionResult GetBOMInfo()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <returns></returns>
        public IActionResult UpdateBom()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 物料列表
        /// </summary>
        /// <returns></returns>
        public IActionResult GetBomParts()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 工艺路线列表
        /// </summary>
        /// <returns></returns>
        public IActionResult GetProcess()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 添加子Bom
        /// </summary>
        /// <returns></returns>
        public IActionResult AddChildBom()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        public IActionResult Workbenches()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        #endregion


    }
}
